/*
 * @(#)GetPrecalculatedFeeRequestBean.java 创建于 2016-07-14 14:54:50
 *
 * 版权：版权所有 Bsoft 保留所有权力。
 */
package hcn.protocol.ods.diagnosis;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author <a href="mailto:chinnsii@163.com">zhengshi</a>
 */
@XmlRootElement(name = "getPrecalculatedFeeRequest")
public class GetPrecalculatedFeeRequestBean implements Serializable {

    private String orgId;
    private String patientId;
    private List<PrecalculatedFeeRecordBean> feeRecords;

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    @XmlElementWrapper(name = "feeRecords")
    @XmlElement(name = "feeRecord")
    public List<PrecalculatedFeeRecordBean> getFeeRecords() {
        return feeRecords;
    }

    public void setFeeRecords(List<PrecalculatedFeeRecordBean> feeRecords) {
        this.feeRecords = feeRecords;
    }

    public void addFeeRecord(PrecalculatedFeeRecordBean feeRecordBean) {
        if (feeRecords == null) {
            feeRecords = new ArrayList<PrecalculatedFeeRecordBean>();
        }
        this.feeRecords.add(feeRecordBean);
    }
}
